package com.stefanini.pe.bbva.iivs.in.bo;

import java.util.List;

import com.stefanini.pe.bbva.iivs.in.bo.iface.TerritorioService;
import com.stefanini.pe.bbva.iivs.in.dao.iface.TerritorioDAO;
import com.stefanini.pe.bbva.iivs.in.to.Territorio;

public class TerritorioServiceImpl implements TerritorioService {

	private TerritorioDAO territorioDAO; 
	
	public TerritorioServiceImpl(TerritorioDAO territorioDAO) {
		this.territorioDAO=territorioDAO;
	}

	public int deleteByPrimaryKey(String codTer) {
		return this.territorioDAO.deleteByPrimaryKey(codTer);
	}

	public void insert(Territorio record) {
		this.territorioDAO.insert(record);
	}

	public void insertSelective(Territorio record) {
		this.territorioDAO.insertSelective(record);
	}

	public Territorio selectByPrimaryKey(String codTer) {
		return this.territorioDAO.selectByPrimaryKey(codTer);
	}

	public int updateByPrimaryKey(Territorio record) {
		return this.territorioDAO.updateByPrimaryKey(record);
	}

	public int updateByPrimaryKeySelective(Territorio record) {
		return this.territorioDAO.updateByPrimaryKeySelective(record);
	}

	public List selectAll() {
		return this.territorioDAO.selectAll();
	}

}
